package DB;

import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class WrongQuestion {
    private IntegerProperty questionId=new SimpleIntegerProperty();
    private IntegerProperty answerId=new SimpleIntegerProperty();
    private StringProperty question=new SimpleStringProperty();
    private StringProperty type=new SimpleStringProperty();
    private StringProperty topic=new SimpleStringProperty();
    private StringProperty section=new SimpleStringProperty();
    private StringProperty answer=new SimpleStringProperty();
    private StringProperty userName=new SimpleStringProperty();
    private IntegerProperty wrongCount=new SimpleIntegerProperty();
    public WrongQuestion(){}
    public IntegerProperty questionIdPro(){
        return questionId;
    }
    public IntegerProperty answerIdPro(){
        return answerId;
    }
    public StringProperty questionPro(){
        return question;
    }
    public StringProperty typePro(){
        return type;
    }
    public StringProperty sectionPro(){
        return section;
    }
    public StringProperty topicPro(){
        return topic;
    }
    public StringProperty answerPro(){
        return answer;
    }
    public StringProperty userNamePro(){
        return userName;
    }
    public IntegerProperty wrongCountPro(){
        return wrongCount;
    }
    public void setQuestionId(int questionId){
        this.questionId.set(questionId);
    }
    public void setAnswerId(int answerId){
        this.answerId.set(answerId);
    }
    public void setQuestion(String question){
        this.question.set(question);
    }
    public void setType(String type){
        this.type.set(type);
    }
    public void setSection(String section){
        this.section.set(section);
    }
    public void setTopic(String topic){
        this.topic.set(topic);
    }
    public void setAnswer(String answer){
        this.answer.set(answer);
    }
    public void setUserName(String userName){
        this.userName.set(userName);
    }
    public void setWrongCount(int wrongCount){
        this.wrongCount.set(wrongCount);
    }
    public int getQuestionId(){
        return questionId.get();
    }
    public int getAnswerId(){
        return answerId.get();
    }
    public String getQuestion(){
        return question.get();
    }
    public String getType(){
        return type.get();
    }
    public String getSection(){
        return section.get();
    }
    public String getTopic(){
        return topic.get();
    }
    public String getAnswer(){
        return answer.get();
    }
    public String getUserName(){
        return userName.get();
    }
    public int getWrongCount(){
        return wrongCount.get();
    }
}
